<?php
/**
 *
 * User: Jessica@aweb.wang
 * Date: 2023/3/10 14:50
 * Email: <1194323013@qq.com>
 *                            _ooOoo_
 *                           o8888888o
 *                           88" . "88
 *                           (| -_- |)
 *                           O\  =  /O
 *                        ____/`---'\____
 *                      .'  \\|     |//  `.
 *                     /  \\|||  :  |||//  \
 *                    /  _||||| -:- |||||-  \
 *                    |   | \\\  -  /// |   |
 *                    | \_|  ''\---/''  |   |
 *                    \  .-\__  `-`  ___/-. /
 *                  ___`. .'  /--.--\  `. . __
 *               ."" '<  `.___\_<|>_/___.'  >'"".
 *              | | :  `- \`.;`\ _ /`;.`/ - ` : | |
 *              \  \ `-.   \_ __\ /__ _/   .-` /  /
 *         ======`-.____`-.___\_____/___.-`____.-'======
 *                            `=---='
 *        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 *                      Buddha Bless, No Bug !
 **/

namespace app\common\model;
use think\Model;

class Applet extends Model
{
    protected $autoWriteTimestamp = true;
    protected $pk="id";
    protected $schema = [
        'id'          => 'int',
        'name'        => 'string',
        'notifyuri'      => 'string',
        'icon'=>'string',
        'appid'=>'string',
        'appsecret'=>'string',
        'create_time' => 'datetime',
        'update_time' => 'datetime',
        'is_del'=>'int',
        'status'=>'int'
    ];
    public function premise()
    {
        return $this->hasMany(Premise::class,'applet_id','id');
    }
}